//
//  UIFont+GQHFont.m
//  Seed
//
//  Created by GuanQinghao on 21/03/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import "UIFont+GQHFont.h"

@implementation UIFont (GQHFont)

// 最小字体 小字
+ (UIFont *)qh_fontSmallest {
    
    return [UIFont systemFontOfSize:12.0f];
}

// 副文、列表副文
+ (UIFont *)qh_fontSmaller {
    
    return [UIFont systemFontOfSize:14.0f];
}

// 正文、列表正文
+ (UIFont *)qh_fontDefault {
    
    return [UIFont systemFontOfSize:17.0f];
}

// 标题、按钮
+ (UIFont *)qh_fontBigger {
    
    return [UIFont systemFontOfSize:18.0f];
}

// 最大字体 导航、突出内容
+ (UIFont *)qh_fontBiggest {
    
    return [UIFont systemFontOfSize:20.0f];
}

// 自定义字体大小
+ (UIFont *)qh_fontOfSize:(CGFloat)size {
    
    return [UIFont systemFontOfSize:size];
}

+ (UIFont *)qh_fontOfSize:(CGFloat)size weight:(CGFloat)weight {
    
    return [UIFont systemFontOfSize:size weight:weight];
}

// 自定义黑体字大小
+ (UIFont *)qh_boldFontOfSize:(CGFloat)size {
    
    return [UIFont boldSystemFontOfSize:size];
}

// 根据字体名称设置字体
+ (UIFont *)qh_fontWithName:(NSString *)name size:(CGFloat)size {
    
    if (!size) {
        
        return [UIFont fontWithName:name size:16.0f];
    }
    return [UIFont fontWithName:name size:size];
}

@end
